<?php
/**
 * Created by PhpStorm.
 * User: lzy
 * Date: 2018/11/21
 * Time: 17:48
 */

namespace App\Content\Controllers\Home;

use App\Base\Controllers\Controller;
use App\Content\Contracts\ArticleInterface;
use Illuminate\Http\Request;


class ArticleController extends Controller
{
    /**
     * 文章接口
     * @return ArticleInterface
     */
    public function getArticleInterface()
    {
        return app()->make(ArticleInterface::class);
    }

    /**
     * 获取条款
     * @param Request $request
     * @return mixed
     */
    public function clause(Request $request)
    {
        return $this->getArticleInterface()->getInfo(3);
    }

    /**
     * 获取条款
     * @param Request $request
     * @return mixed
     */
    public function help(Request $request)
    {
        return $this->getArticleInterface()->getInfo(4);
    }
}